﻿using System;
using System.Collections.Generic;
using System.Text;

namespace crypto_all.KMS
{
    public interface ISM
    {
        /// <summary>
        /// 获取kms的明文秘钥(公钥)+密文秘钥（私钥）
        /// </summary>
        /// <returns></returns>
        (string DataKey, string EncryptedDataKey) GetDataKeyTuple();

        /// <summary>
        /// 通过密文秘钥换取明文秘钥
        /// </summary>
        /// <param name="encryptedDataKey"></param>
        /// <returns></returns>
        string GetDataKey(string encryptedDataKey);

        byte[] HexStringToByteArray(string s);
    }
}
